import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import viteMock from "vite-easy-mock";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    (viteMock as any).default({
      // 配置目的为了让请求有一个前缀：/mock
      patten: "/mock",
      dir: "/",
    }),
  ],
});
